import map from "./map";
import property from "../object/property";

export default function pluck(obj, key?) {
  return map(obj, property(key))
}